package com.hq.ims.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hq.ims.data.entityenum.EnumBusinessRepeatType;
import com.hq.ims.data.vo.BusiRepeatTypeCountMapstruct;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.math.BigDecimal;

/**
* @author 蒋柏平
* @since 20241025
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("BusiRepeatTypeCount")
@TableName(value = "busi_repeat_type_count")
@ApiModel(value = "经营信息重复类型数量表", description = "经营信息重复类型数量表")
public class BusiRepeatTypeCount extends BaseModel<BusiRepeatTypeCount> implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(value = "busi_repeat_type_count_id",type = IdType.ASSIGN_UUID)
    private String busiRepeatTypeCountId;

    @ApiModelProperty(value = "重复类型")
    @TableField(value = "repeat_type")
    private EnumBusinessRepeatType repeatType;

    @ApiModelProperty(value = "重复数量")
    @TableField(value = "repeat_count")
    private Integer repeatCount;

    @ApiModelProperty(value = "经营信息管理ID")
    @TableField(value = "busi_info_id")
    private String busiInfoId;

    @ApiModelProperty(value = "最高相似度")
    @TableField(value = "max_similarity_rate")
    private BigDecimal maxSimilarityRate;

    public BusiRepeatTypeCountMapstruct.BusiRepeatTypeCountRowAuthVo auth(){
        BusiRepeatTypeCountMapstruct.BusiRepeatTypeCountRowAuthVo auth = new BusiRepeatTypeCountMapstruct.BusiRepeatTypeCountRowAuthVo(this);
        return auth;
    }

}
